﻿using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace SelfService.Model.Models
{
    public class SysConfig : TopBasePoco
    {

        [Display(Name = "键")]
        [StringLength(64)]
        [Required]
        public string Key { get; set; }

        [Display(Name = "值")]
        [StringLength(128)]
        public string Value { get; set; }

        [Display(Name = "值类型")]
        public SysConfigValueTypeEnum ValueType { get; set; }

        [Display(Name = "描述")]
        [StringLength(512)]
        public string Description { get; set; }

        [Display(Name = "分组")]
        public SysConfigGroup Group { get; set; }

        [Display(Name = "分组")]
        [Required]
        public Guid? GroupId { get; set; }
    }
}
